package com.woniuxy.dao;

import com.woniuxy.pojo.*;

import java.util.List;

public interface DrvingRecordMapper {
    /**
     * 查询所有出车记录
     * @return
     */
    public List<DrvingRecord> selectAllDrvingRecord();

    public List<Car> selectAllCarById(int id);

    public  List<Dictionary> selectAllDeptById(int id);

    public List<Driver> selectAllDriverById(int id);

    public List<User> selectAllUserById(int id);

    /**
     * 根据出差地点模糊查询
     * @param drvingRecord
     * @return
     */
    public List<DrvingRecord> selectDrvingRecordsByProperty(DrvingRecord drvingRecord);

    /**
     * 根据id删除出行记录
     * @param id
     */
    public void deleteDrvingRecordById(int id);

    /**
     * 增加用户
     * @param drvingRecord
     * @return
     */
    public int insertDrvingRecord(DrvingRecord drvingRecord);

    public int updataDrvingRecord(DrvingRecord drvingRecord);
    public List<Car> selectAllCars();
    public List<Driver> selectAllDrivers();
    public List<Dictionary> selectAllDepts();
    public List<User> selectAllUsers();

    public DrvingRecord findDrvingRecordByCarId(int car_id);


}
